home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12635 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: news.cais.com!ip28
  2. From: dlabell@paltech.com (David Labell)
  3. Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.pl1,comp.lang.apl
  4. Subject: Re: GOTO controversy
  5. Date: Tue, 02 Apr 96 02:10:49 GMT
  6. Organization: David Labell
  7. Message-ID: <4jq2en$g2q@news.cais.com>
  8. References: <314FB5F5.259B@simi.is> <3151B47F.70FD@connix.com> <4jo5t6$1ki@socrates.moe.edu.sg>
  9. NNTP-Posting-Host: ip17.dialup.paltech.com
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. >: What to you think? Loops without using loops?
  13.  
  14. >: Looping with out a loop
  15. >
  16. >: no_loop(0,10);
  17. >
  18. >: no_loop(int start, int end)
  19. >: {
  20. >:     if(start != end) {
  21. >:         stuff
  22. >:         no_loop(start+1,end);
  23. >:     }
  24. >: }
  25. >
  26. >: I haven't tested this but you get the idea.
  27.  
  28. Here's a guy who would rather recurse than loop. I don't mean to be rude, but 
  29. this is typical of C programmers. Why not write it so it says what it does? 
  30. Who benefits from your tricks? 
  31.  
  32. I write this from the standpoint of someone who has spent a career poking 
  33. through stuff like the above -- writing it weird just so you can say you 
  34. didn't do ____. 
  35.  
  36. I'm really tired of it. 
  37. ........................................................................
  38.